<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<div class="main_content">
    <div id="main">
    	<div class="main_left">
        	<div class="main_left_top bottom">
            	<div class="pruduct_more">
                	<p class="title_type"> 新闻动态 </p>
                	<span class="english">  News </span>
                </div>
                <div class="product_menu">
                	<ul>
        <?php $nowsid=$catid?>
           <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=c69487d48dfac114b4e89f475c1f3378&action=category&catid=3&num=25&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'3','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'25',));}?>
           <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?> 
           		
                    	<li <?php if($nowsid == $r[catid] ) { ?> class="on" <?php } ?> > <a href="<?php echo $r['url'];?>"> <?php echo $r['catname'];?> </a> </li>
           <?php $n++;}unset($n); ?>
		   <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                    </ul>
                </div>
            </div>
            
        	<div class="main_left_top hits">
            	<div class="pruduct_more">
                	<p class="title_type"> 热门新闻 </p>
                	<span class="english">  Hot news </span>
                </div>
                <div class="news_menu">
                	<ul>
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=8096c32a088c1e0607658565d78a741a&action=lists&catid=3&num=5&order=inputtime+desc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'3','order'=>'inputtime desc','limit'=>'5',));}?>
           <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                        <li> <a href="<?php echo $r['url'];?>"> <?=mb_substr($r[title],0,13,'utf8')?>....  </a></li>
           <?php $n++;}unset($n); ?>
                    </ul>
                </div>
            </div>
            
            <div class="main_left_bottom">
            	<div class="pruduct_more">
                	<p class="title_type"> 联系我们 </p>
                	<span class="english">  Contact </span>
                </div>
                <div class="contact">
                	<img src="<?php echo IMG_PATH;?>contact.jpg" />
                    <p>
                    	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"block\" data=\"op=block&tag_md5=62e5ac893abc3866a6bda2553c0a156a&pos=index_block_1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">添加碎片</a>";}$block_tag = pc_base::load_app_class('block_tag', 'block');echo $block_tag->pc_tag(array('pos'=>'index_block_1',));?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?> 
                    </p>
                </div>
            </div> 
        </div>
        <div class="main_right">
        	<div class="main_right_top">
        
      <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=a41807f3c37964e5783490bfe2cd4ef5&action=lists&catid=%24catid&num=2&siteid=%24siteid&order=inputtime+ASC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 2;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'inputtime ASC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'inputtime ASC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
            	<div class="pruduct_more">
                	<p class="title_type"> 新闻动态 </p>
                	
                    <span class="location">当前位置： <a href="<?php echo siteurl($siteid);?>"> 首页</a> >  <?php echo catpos($catid);?>  <?php echo $title;?>  </span>
                </div>
                <div class="about news">
                    <ul>
           <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                    	<li><p><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></p><div class="padding"><img src="<?php echo IMG_PATH;?>news_s.jpg" /><span><?php echo date('Y-m-d',$r['inputtime']);?></span></div></li>
           <?php $n++;}unset($n); ?>
                    </ul>
                </div>
                <div class="page center">
                	<ul>
                        <li><?php echo $pages;?></li>
                    </ul>
                </div>
         
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>  
            </div>
          
        </div>
       </div>
    </div>
<?php include template("content","footer"); ?>